<?php if(!defined('ROOT_PATH')) exit('Access Denied');?><div id="commentlist">
        <div class="f-s"></div>
        <div class="f-m">
          <h2> <em>留言</em> <span class="thin"><?php echo $page["total_count"];?>条</span> <span class="thin"> (<a href="<?php echo APP;?>index.php/Index/Feed" title="RSS" target="_self" title="">RSS 2.0</a>)</span> <a href="#respond" class="to_respond">发表</a> </h2>
          <div class="commentbox">
          <?php if(is_array($leavesdata)) foreach($leavesdata AS $vlaue) { ?>
          <li class="comment_li">
               <div class="comment-body">
                <div class="vcard"> <img  class="avatar"  src="<?php if($vlaue["head"] != null) { ?><?php echo $vlaue["head"];?><?php } else { ?><?php echo APP;?>themes/default/images/nopic.png<?php } ?>" alt="头像"/> <cite class="fn"><a class="url" title="<?php echo $vlaue["name"];?>" href="" target="_blank"><?php echo $vlaue["name"];?></a> </cite> <span class="says">说：</span> </div>
                <div class="comment-meta"> <a href=""><?php echo $vlaue["date"];?></a> </div>
                <p><?php echo ubb($vlaue["content"]);?></p>
                <div class="reply"><a class="comment-reply-link" href="#respond" onclick="re(<?php echo $vlaue["id"];?>)" rel="nofollow" title="">回复</a></div>
              </div>
            </li>
          <?php } ?>

<!--         <?php if(is_array($alldata)) foreach($alldata AS $vlaue) { ?>
         <?php if($vlaue["re"]==0) { ?>
          <li class="comment_li">
          <?php } else { ?>
          <ul class='children'>
          <li class="comment">
          <?php } ?>
               <div class="comment-body">
                <div class="vcard"> <img  class="avatar"  src="<?php if($vlaue["head"] != null) { ?><?php echo $vlaue["head"];?><?php } else { ?><?php echo APP;?>themes/default/images/nopic.png<?php } ?>" alt="头像"/> <cite class="fn"><a class="url" title="<?php echo $vlaue["name"];?>" href="" target="_blank"><?php echo $vlaue["name"];?></a> </cite> <span class="says">说：</span> </div>
                <div class="comment-meta"> <a href=""><?php echo $vlaue["date"];?></a> </div>
                <p><?php echo $vlaue["content"];?></p>
                <div class="reply"><?php if($vlaue["re"]==0) { ?>
          <a class="comment-reply-link" href="#respond" onclick="re(<?php echo $vlaue["id"];?>)" rel="nofollow" title="">回复</a>
          <?php } else { ?> &nbsp; 
          <?php } ?></div>
              </div>
          <?php if($vlaue["re"]==0) { ?>
          </li>
          <?php } else { ?>
          </li>
          </ul>
          <?php } ?>
         <?php } ?>
-->
            <ul class="pagination">
              <div>
                <table width="100%" border="0" cellpadding="5" cellspacing="0">
                  <tr>
                    <td valign="bottom" align="left" nowrap="true" style="width:40%;">总记录: <?php echo $page["total_count"];?>  页码:<?php echo $page["current_page"];?>/<?php echo $page["total_page"];?>  每页：<?php echo $page["page_size"];?></td>
                    <td valign="bottom" align="right" nowrap="true" class="" style="width:60%;">
                    <?php if($page["current_page"] != $page["first_page"]) { ?>
                    <a disabled="true" style="margin-right:5px;" onclick="ajaxLoad('<?php echo APP;?>index.php/Leaves/Main/p/<?php echo $page["first_page"];?>','#leave');return false;">首页</a>
                    <a disabled="true" style="margin-right:5px;" onclick="ajaxLoad('<?php echo APP;?>index.php/Leaves/Main/p/<?php echo $page["prev_page"];?>','#leave');return false;">上一页</a><?php } ?>
                    <?php if(is_array($page["all_pages"])) foreach($page["all_pages"] AS $vlaue) { ?>
                    <?php if($vlaue != $page["current_page"]) { ?>
                    <a style="margin-right:5px;font-weight:Bold;color:black;" href="" onclick="ajaxLoad('<?php echo APP;?>index.php/Leaves/Main/p/<?php echo $vlaue;?>','#leave');return false;"><?php echo $vlaue;?></a>
                    <?php } else { ?>
                    <span style="margin-right:5px;font-weight:Bold;color:red;"><?php echo $vlaue;?></span>
                    <?php } ?>
                    <?php } ?>

                    <?php if($page["current_page"] != $page["last_page"]) { ?>
                    <a disabled="true" style="margin-right:5px;" onclick="ajaxLoad('<?php echo APP;?>index.php/Leaves/Main/p/<?php echo $page["next_page"];?>','#leave');return false;">下一页</a>
                    <a disabled="true" style="margin-right:5px;" onclick="ajaxLoad('<?php echo APP;?>index.php/Leaves/Main/p/<?php echo $page["last_page"];?>','#leave');return false;">尾页</a></td>
                    <?php } ?>
                   
                   
                  </tr>
                </table>
              </div>
            </ul>
          </div>
        </div>
        <div class="f-e"></div>
      </div>